package com.hcxdi.api.bean.user;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jiajiabao on 16-11-14.
 */

public class Truck implements Parcelable {
    private String driveModel;
    private String plateNumber;
    private String driverBrand;
    private String vehicleType;
    private int status;
    private String truckId;

    public String getTruckId() {
        return truckId;
    }

    public void setTruckId(String truckId) {
        this.truckId = truckId;
    }

    public String getDriveModel() {
        return driveModel;
    }

    public void setDriveModel(String driveModel) {
        this.driveModel = driveModel;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public String getDriverBrand() {
        return driverBrand;
    }

    public void setDriverBrand(String driverBrand) {
        this.driverBrand = driverBrand;
    }

    public String getVehicleType() {
        return vehicleType;
    }

    public void setVehicleType(String vehicleType) {
        this.vehicleType = vehicleType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.driveModel);
        dest.writeString(this.plateNumber);
        dest.writeString(this.driverBrand);
        dest.writeString(this.vehicleType);
        dest.writeInt(this.status);
        dest.writeString(this.truckId);
    }

    public Truck() {
    }

    protected Truck(Parcel in) {
        this.driveModel = in.readString();
        this.plateNumber = in.readString();
        this.driverBrand = in.readString();
        this.vehicleType = in.readString();
        this.status = in.readInt();
        this.truckId = in.readString();
    }

    public static final Parcelable.Creator<Truck> CREATOR = new Parcelable.Creator<Truck>() {
        @Override
        public Truck createFromParcel(Parcel source) {
            return new Truck(source);
        }

        @Override
        public Truck[] newArray(int size) {
            return new Truck[size];
        }
    };
}
